package com.yehangtech.designpattern.创建型_单例.demo;

/**
 * 饿汉式（线程安全）
 */
public class Singleton_04 {

    private static Singleton_04 singleton04=new Singleton_04();

    private Singleton_04(){

    }

    public static Singleton_04 newInstance(){
        return singleton04;
    }
}
